#ifndef __TCPSOCKET_H_
#define __TCPSOCKET_H_



#include "Socket.h"

class DECLSPEC CTCPSocket : public CSocket
{
public:
    /**
     * Send some message in this function
     * @param strMSG : The message that you want to send
     * @return ：Send result
     */
    virtual int Send(const std::string strMSG);

    /**
     * Recv some messaeg in this function
     * @param strMSG : Get message buffer
     * @return : Recv result
     */
    virtual int Recv(std::string &strMSG);

protected:
    CTCPSocket();
    CTCPSocket* CreateClientConnection(SOCKET nSocket, struct sockaddr_in addrHost);
    CTCPSocket(const CTCPSocket &__instance);
    CTCPSocket& operator = (const CTCPSocket &__instance);
};

#endif // !__TCPSOCKET_H_